package com.springboot.dubbo.service.impl;

import com.springboot.dubbo.pojo.UserInfoPojo;
import com.springboot.dubbo.pojo.vojo.UserInfoVojo;
import com.springboot.dubbo.service.UserInfoService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * neu
 * 2019/7/24 11:42
 *
 * @Version : 1.0
 * @Description :
 */
@Service
@Component
public class UserInfoServiceImpl implements UserInfoService {

    @Override
    public List<UserInfoPojo> findUserInfoList(UserInfoPojo dojo) {

        System.out.println(dojo);

        UserInfoPojo userInfoPojo = new UserInfoPojo("lei","123456","12");
        UserInfoPojo userInfoPojo1 = new UserInfoPojo("zhao","1234561","14");
        UserInfoPojo userInfoPojo2 = new UserInfoPojo("sun","1234562","15");

        List<UserInfoPojo> list =  Arrays.asList(userInfoPojo,userInfoPojo1,userInfoPojo2);
        UserInfoVojo userInfoVojo = new UserInfoVojo();
        userInfoVojo.setUserInfoPojoList(list);
        return list;

    }
}
